package com.lindroy.androidplayer.viewmodels

import androidx.lifecycle.ViewModel
import com.lindroy.androidplayer.utils.SingleLiveEvent
import com.lindroy.androidplayer.utils.mapSingle

/**
 * @author Lin
 * @date 2022/3/9
 * @function
 */
class FindViewModel : ViewModel() {

    private val searchClickAction = SingleLiveEvent<Unit>()

    val searchClickListener = searchClickAction.mapSingle { }

    fun onSearchClick() {
        searchClickAction.postValue(Unit)
    }
}